﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Cwing.UI.Validation
{
    public class Configuration
    {
        private String regEx;

        public String TypeRegEx
        {
            get
            {
                return regEx;
            }
            set
            {
                regEx = value;
            }
        }

        private String  typeMessage;

        public String  TypeMessage
        {
            get
            {
                return typeMessage;
            }
            set
            {
                typeMessage = value;
            }
        }

        private int maxLength;

        public int MaxLength
        {
            get
            {
                return maxLength;
            }
            set
            {
                maxLength = value;
            }
        }

        private int minLength;

        public int MinLength
        {
            get
            {
                return minLength;
            }
            set
            {
                minLength = value;
            }
        }

        private String lengthMessage;

        public String LengthMessage
        {
            get
            {
                return lengthMessage;
            }
            set
            {
                lengthMessage = value;
            }
        }

        private Boolean mandatory = false;

        public Boolean Mandatory
        {
            get
            {
                return mandatory;
            }
            set
            {
                mandatory = value;
            }
        }

        private String mandatoryMessage = String.Empty;

        public String MandatoryMessage
        {
            get
            {
                return mandatoryMessage;
            }
            set
            {
                mandatoryMessage = value;
            }
        }
    }
}
